package com.ruicar.afs.cloud.account.common.processor.impl;

import com.ruicar.afs.cloud.account.common.processor.AbsBaseResponseMsg;
import com.ruicar.afs.cloud.common.core.constant.CommonConstants;
import lombok.Data;

/**
 * @author infinity
 * @version 1.0
 * @date 2020/7/21 22:04
 */
@Data
public class VoucherResponse extends AbsBaseResponseMsg {
    private String code;
    private String msg;

    public static VoucherResponse convertFrom(VoucherResponse voucherResponse) {
        //成功
        if (voucherResponse != null && "200".equals(voucherResponse.getCode())) {
            voucherResponse.setCode(CommonConstants.SUCCESS);
        }
        return voucherResponse;
    }
}
